feat: configurable host port via HOST_PORT in .env - #29
Merged
Conversation
Use ${HOST_PORT:-3000} for the host side of the port mapping and document
HOST_PORT in .env.example. Container-internal port stays 3000 so the image
healthcheck is unaffected. Defaults to 3000 when unset.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Follow-up to #28. Deployments often need SimHub on a host port other than 3000 (proxy in front, port already taken). This makes the host port configurable without editing
compose.yaml.Changes
compose.yaml: host side of the port mapping is now${HOST_PORT:-3000}..env.example: documentsHOST_PORT(defaults to 3000).The container-internal port stays fixed at 3000, so the image healthcheck is unaffected — only the published host port changes.
Validation
docker compose configresolvespublishedto"3000"by default and"8080"withHOST_PORT=8080.🤖 Generated with Claude Code